import time

from autoframe.common.base import Base, By


class Backend_login(Base):
    # 用户名
    def input_username(self, username):
        self.find_element((By.NAME, 'username')).send_keys(username)

    # 输入密码
    def input_password(self, password):
        self.find_element((By.NAME, 'password')).send_keys(password)

    # 点击自动登录按钮
    def remember(self):
        self.find_element((By.ID, 'remember')).click()

    # 点击登录
    def btn_login(self):
        self.find_element((By.CLASS_NAME, 'btn-a')).click()


if __name__ == '__main__':
    pass
